GtkActionMuxer: Plug a memory leak
authorMatthias Clasen <mclasen@redhat.com>
Sun, 29 Jun 2014 02:37:14 +0000 (22:37 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 29 Jun 2014 02:37:14 +0000 (22:37 -0400)
valgrind complained that we leak the primary_accels table.

gtk/gtkactionmuxer.c

index 09cb1b3741e15e7a75901690fbe152fe64281200..a1dc9f8110c215762f9f371a9bf3893484cd718c 100644 (file)
@@ -534,6 +534,8 @@ gtk_action_muxer_finalize (GObject *object)
   g_assert_cmpint (g_hash_table_size (muxer->observed_actions), ==, 0);
   g_hash_table_unref (muxer->observed_actions);
   g_hash_table_unref (muxer->groups);
+  if (muxer->primary_accels)
+    g_hash_table_unref (muxer->primary_accels);
 
   G_OBJECT_CLASS (gtk_action_muxer_parent_class)
     ->finalize (object);